package com.boolib.animate.framework.entity;

import com.boolib.animate.commons.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

import javax.persistence.Transient;
import java.util.List;

/**
 * @author nier
 * @create 2020-02-20 16:13
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class AnimateWork extends BaseEntity {


    private Long searchLocationId;

    private Long searchFaceId;
    private Integer popularCount;
    private Integer collectCount;
    private Integer endStatus;
    private Integer isRecommend;
    private String title;
    private String coverImage;
    private String author;
    private String authorMsg;
    private String info;
    private Integer score;
    private Integer chapterCount;
    private Integer indexStatus;


    @JsonIgnore
    @Transient
    private MultipartFile pageFile;

    @Transient
    private List<AnimateSearchTag> tagList;

    @Transient
    private List<AnimateChapter> chapterList;

    @Transient
    private List<AnimateChapterComment> commentList;

}
